package com.c2c.po.enums.impl;


import com.c2c.po.enums.BaseCodeEnum;
import com.fasterxml.jackson.databind.ser.Serializers;

/**
 * 投诉状态
 */
public enum ComplaintsState implements BaseCodeEnum {

    UNPROCESSED(1, "未处理"),
    COMPLAINTS_FAIL(2, "投诉失败"),
    COMPLAINTS_SUCCESS(3, "投诉成功"),
    COMPLAINTS_BAD(4, "恶意投诉");

    private int complaintsStateId;
    private String complaintsState;

    @Override
    public int getCode() {
        return this.complaintsStateId;
    }
    @Override
    public String getInstance() {
        return this.complaintsState;
    }

    ComplaintsState(int complaintsStateId, String complaintsState) {
        this.complaintsStateId = complaintsStateId;
        this.complaintsState = complaintsState;
    }

    public int getComplaintsStateId() {
        return complaintsStateId;
    }

    public void setComplaintsStateId(int complaintsStateId) {
        this.complaintsStateId = complaintsStateId;
    }

    public String getComplaintsState() {
        return complaintsState;
    }

    public void setComplaintsState(String complaintsState) {
        this.complaintsState = complaintsState;
    }

    @Override
    public String toString() {
        return "ComplaintsState{" +
                "complaintsStateId=" + complaintsStateId +
                ", complaintsState='" + complaintsState + '\'' +
                '}';
    }
}
